#!/bin/bash

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
export PATH

fname=$1

if [ ! -z "$fname" ]; then
        #echo 'fname:'${fname%?}
        7za a -r -mx0 -pmusicharts.org -t7z -v99m ${fname%?}".7z" $fname && rm -rf $fname
else
        echo -e "\033[0;31;1mERROR: \033[0mPlease input path to 7z."
fi